import tkinter as tk
from tkinter import messagebox

def show_message_box():
    messagebox.showinfo("提醒", "sb")
    root.after(1000, show_message_box)  # 1000毫秒（1秒）后再次显示消息框

# 创建主窗口
root = tk.Tk()
root.withdraw()  # 隐藏主窗口

# 初始显示消息框
show_message_box()

# 进入主循环
root.mainloop()
